package com.athui.bean.config;

import org.apache.flink.api.common.typeinfo.TypeInformation;

/**
 * @description: TODO
 * @autor: zhangzhonghui
 * @create: 2024-08-03 18:50
 * @Version: 1.0
 */
public class DataType {

    // 文本数据类型
    public  static final Integer TEXT = 1;
    // 数值
    public  static final Integer NUMERICAL = 2;
    // 日期
    public  static final Integer DATE = 3;
    // 字节
    public  static final Integer BYTE = 4;

    /**
     * @description: TODO Flink 数据类型
     * @author: 阿辉大人
     * @create: 2024/8/3 18:51
     * @version: 1.0
    **/
    private TypeInformation flinkType;
    /**
     * @description: TODO 类型标签
     * @author: 阿辉大人
     * @create: 2024/8/3 18:54
     * @version: 1.0
    **/
    private Integer label;

    public DataType(TypeInformation flinkType, Integer label) {
        this.flinkType = flinkType;
        this.label = label;
    }

    public TypeInformation getFlinkType() {
        return flinkType;
    }

    public Integer getLabel() {
        return label;
    }
}
